package cn.bx.bid.config;

public class Printer {
    private int money;
    private String brand;

    private String youdian;
    //没有无参,没有set方法
    public Printer(int money, String brand, String youdian) {
        this.money = money;
        this.brand = brand;
        this.youdian = youdian;
    }

    public void init(){
        System.out.println("打印机构建完成,可以使用了");
    }
    public void destory(){
        System.out.println("打印机已经报废");
    }

    @Override
    public String toString() {
        return "Printer{" +
                "money=" + money +
                ", brand='" + brand + '\'' +
                ", youdian='" + youdian + '\'' +
                '}';
    }
}
